Class: Kagi::API::Models::Content::Meta

Inherits:
Data
  • Object
show all
Defined in:
lib/kagi/api/models/content/meta.rb

Overview

Models meta data.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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

#balanceObject (readonly)

Returns the value of attribute balance

Returns:

  • (Object)

    the current value of balance



10
11
12
# File 'lib/kagi/api/models/content/meta.rb', line 10

def balance
  @balance
end

#durationObject (readonly)

Returns the value of attribute duration

Returns:

  • (Object)

    the current value of duration



10
11
12
# File 'lib/kagi/api/models/content/meta.rb', line 10

def duration
  @duration
end

#idObject (readonly)

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



10
11
12
# File 'lib/kagi/api/models/content/meta.rb', line 10

def id
  @id
end

#nodeObject (readonly)

Returns the value of attribute node

Returns:

  • (Object)

    the current value of 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))