Class: CirroIOV2::Resources::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/cirro_io_v2/resources/base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ Base

Returns a new instance of Base.



6
7
8
# File 'lib/cirro_io_v2/resources/base.rb', line 6

def initialize(client)
  @client = client
end

Instance Attribute Details

#clientObject (readonly)

Returns the value of attribute client.



4
5
6
# File 'lib/cirro_io_v2/resources/base.rb', line 4

def client
  @client
end

Instance Method Details

#resource_rootObject



10
11
12
# File 'lib/cirro_io_v2/resources/base.rb', line 10

def resource_root
  self.class.name.demodulize.underscore.pluralize
end