Class: GeminiApi::Address
- Inherits:
-
Struct
- Object
- Struct
- GeminiApi::Address
- Defined in:
- lib/gemini_api/address.rb
Instance Attribute Summary collapse
-
#address ⇒ Object
Returns the value of attribute address.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#label ⇒ Object
Returns the value of attribute label.
-
#network ⇒ Object
Returns the value of attribute network.
-
#raw_data ⇒ Object
Returns the value of attribute raw_data.
-
#scope ⇒ Object
Returns the value of attribute scope.
-
#status ⇒ Object
Returns the value of attribute status.
Class Method Summary collapse
Instance Attribute Details
#address ⇒ Object
Returns the value of attribute address
2 3 4 |
# File 'lib/gemini_api/address.rb', line 2 def address @address end |
#created_at ⇒ Object
Returns the value of attribute created_at
2 3 4 |
# File 'lib/gemini_api/address.rb', line 2 def created_at @created_at end |
#label ⇒ Object
Returns the value of attribute label
2 3 4 |
# File 'lib/gemini_api/address.rb', line 2 def label @label end |
#network ⇒ Object
Returns the value of attribute network
2 3 4 |
# File 'lib/gemini_api/address.rb', line 2 def network @network end |
#raw_data ⇒ Object
Returns the value of attribute raw_data
2 3 4 |
# File 'lib/gemini_api/address.rb', line 2 def raw_data @raw_data end |
#scope ⇒ Object
Returns the value of attribute scope
2 3 4 |
# File 'lib/gemini_api/address.rb', line 2 def scope @scope end |
#status ⇒ Object
Returns the value of attribute status
2 3 4 |
# File 'lib/gemini_api/address.rb', line 2 def status @status end |
Class Method Details
.build(raw_data) ⇒ Object
12 13 14 15 16 17 18 19 20 21 |
# File 'lib/gemini_api/address.rb', line 12 def self.build(raw_data) new( network: raw_data['network'], scope: raw_data['scope'], label: raw_data['label'], status: raw_data['status'], created_at: Time.at(raw_data['createdAt'].to_f / 1000), address: raw_data['address'] ) end |