class Coinstack::Pair

Object representing a single entry of the list

Attributes

added_date[RW]
description[RW]
due_date[RW]
id[RW]
labels[RW]

Public Class Methods

new(options = {}) click to toggle source
# File lib/coinstack/list.rb, line 57
def initialize(options = {})
  options.each { |trait, value| public_send("#{trait}=", value) }
  self.labels ||= []
end

Public Instance Methods

to_h() click to toggle source
# File lib/coinstack/list.rb, line 66
def to_h

end
to_s() click to toggle source
# File lib/coinstack/list.rb, line 62
def to_s
  description.to_s.capitalize + " | Due: #{due_date}"
end