Class: Kitsune::Kit::Adapters::ServerRecord

Inherits:
Data
  • Object
show all
Defined in:
lib/kitsune/kit/adapters/provider.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#id ⇒ Object (readonly)

Returns the value of attribute id

Returns:

  • (Object) —

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

Returns:

  • (Object) —

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

Returns:

  • (Object) —

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

Returns:

  • (Object) —

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

Returns:

  • (Object) —

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

Returns:

  • (Object) —

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

Returns:

  • (Object) —

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

Returns:

  • (Object) —

    the current value of tags



8
9
10
# File 'lib/kitsune/kit/adapters/provider.rb', line 8

def tags
  @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