Class: Kitsune::Kit::Adapters::ServerRecord
- Inherits:
-
Data
- Object
- Data
- Kitsune::Kit::Adapters::ServerRecord
- Defined in:
- lib/kitsune/kit/adapters/provider.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#image ⇒ Object
readonly
Returns the value of attribute image.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#public_ip ⇒ Object
readonly
Returns the value of attribute public_ip.
-
#region ⇒ Object
readonly
Returns the value of attribute region.
-
#size ⇒ Object
readonly
Returns the value of attribute size.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#tags ⇒ Object
readonly
Returns the value of attribute tags.
Instance Method Summary collapse
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id
8 9 10 |
# File 'lib/kitsune/kit/adapters/provider.rb', line 8 def id @id end |
#image ⇒ Object (readonly)
Returns the value of attribute image
8 9 10 |
# File 'lib/kitsune/kit/adapters/provider.rb', line 8 def image @image end |
#name ⇒ Object (readonly)
Returns the value of attribute name
8 9 10 |
# File 'lib/kitsune/kit/adapters/provider.rb', line 8 def name @name end |
#public_ip ⇒ Object (readonly)
Returns the value of attribute public_ip
8 9 10 |
# File 'lib/kitsune/kit/adapters/provider.rb', line 8 def public_ip @public_ip end |
#region ⇒ Object (readonly)
Returns the value of attribute region
8 9 10 |
# File 'lib/kitsune/kit/adapters/provider.rb', line 8 def region @region end |
#size ⇒ Object (readonly)
Returns the value of attribute size
8 9 10 |
# File 'lib/kitsune/kit/adapters/provider.rb', line 8 def size @size end |
#status ⇒ Object (readonly)
Returns the value of attribute status
8 9 10 |
# File 'lib/kitsune/kit/adapters/provider.rb', line 8 def status @status end |
#tags ⇒ Object (readonly)
Returns the value of attribute tags
8 9 10 |
# File 'lib/kitsune/kit/adapters/provider.rb', line 8 def @tags end |
Instance Method Details
#to_h ⇒ Object
9 10 11 |
# File 'lib/kitsune/kit/adapters/provider.rb', line 9 def to_h members.to_h { |member| [member, public_send(member)] } end |