Class: Fizzy::Types::AccountSettings

Inherits:
Data
  • Object
show all
Defined in:
lib/fizzy/generated/types.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#auto_postpone_period_in_daysObject (readonly)

Returns the value of attribute auto_postpone_period_in_days

Returns:

  • (Object)

    the current value of auto_postpone_period_in_days



53
54
55
# File 'lib/fizzy/generated/types.rb', line 53

def auto_postpone_period_in_days
  @auto_postpone_period_in_days
end

#cards_countObject (readonly)

Returns the value of attribute cards_count

Returns:

  • (Object)

    the current value of cards_count



53
54
55
# File 'lib/fizzy/generated/types.rb', line 53

def cards_count
  @cards_count
end

#created_atObject (readonly)

Returns the value of attribute created_at

Returns:

  • (Object)

    the current value of created_at



53
54
55
# File 'lib/fizzy/generated/types.rb', line 53

def created_at
  @created_at
end

#idObject (readonly)

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



53
54
55
# File 'lib/fizzy/generated/types.rb', line 53

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



53
54
55
# File 'lib/fizzy/generated/types.rb', line 53

def name
  @name
end

Class Method Details

.from_json(data) ⇒ Object

Parameters:

  • data (Hash)

    raw JSON response



55
56
57
58
59
60
61
62
63
# File 'lib/fizzy/generated/types.rb', line 55

def self.from_json(data)
  new(
    id: data["id"],
    name: data["name"],
    cards_count: data["cards_count"],
    created_at: data["created_at"],
    auto_postpone_period_in_days: data["auto_postpone_period_in_days"]
  )
end