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

#idObject (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

#imageObject (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

#nameObject (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_ipObject (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

#regionObject (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

#sizeObject (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

#statusObject (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

#tagsObject (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_hObject



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

def to_h
  members.to_h { |member| [member, public_send(member)] }
end