Class: Kagi::API::Models::Content::Meta
- Inherits:
-
Data
- Object
- Data
- Kagi::API::Models::Content::Meta
- Defined in:
- lib/kagi/api/models/content/meta.rb
Overview
Models meta data.
Instance Attribute Summary collapse
-
#balance ⇒ Object
readonly
Returns the value of attribute balance.
-
#duration ⇒ Object
readonly
Returns the value of attribute duration.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#node ⇒ Object
readonly
Returns the value of attribute node.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(balance: nil) ⇒ Meta
constructor
A new instance of Meta.
Constructor Details
#initialize(balance: nil) ⇒ Meta
Returns a new instance of Meta.
13 14 15 |
# File 'lib/kagi/api/models/content/meta.rb', line 13 def initialize(balance: nil, **) super end |
Instance Attribute Details
#balance ⇒ Object (readonly)
Returns the value of attribute balance
10 11 12 |
# File 'lib/kagi/api/models/content/meta.rb', line 10 def balance @balance end |
#duration ⇒ Object (readonly)
Returns the value of attribute duration
10 11 12 |
# File 'lib/kagi/api/models/content/meta.rb', line 10 def duration @duration end |
#id ⇒ Object (readonly)
Returns the value of attribute id
10 11 12 |
# File 'lib/kagi/api/models/content/meta.rb', line 10 def id @id end |
#node ⇒ Object (readonly)
Returns the value of attribute node
10 11 12 |
# File 'lib/kagi/api/models/content/meta.rb', line 10 def node @node end |
Class Method Details
.for(key_map: META_MAP, **attributes) ⇒ Object
11 |
# File 'lib/kagi/api/models/content/meta.rb', line 11 def self.for(key_map: META_MAP, **attributes) = new(**attributes.transform_keys(key_map)) |