Class: CirroIOV2::Resources::Base
- Inherits:
-
Object
- Object
- CirroIOV2::Resources::Base
- Defined in:
- lib/cirro_io_v2/resources/base.rb
Direct Known Subclasses
EpamHeroes::Badges, Gig, GigInvitation, GigResult, GigTimeActivity, NotificationBroadcast, NotificationConfiguration, NotificationLayout, NotificationLayoutTemplate, NotificationLocale, NotificationTemplate, NotificationTopic, NotificationTopicPreference, Payout, SpaceInvitation, User
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
Instance Method Summary collapse
-
#initialize(client) ⇒ Base
constructor
A new instance of Base.
- #resource_root ⇒ Object
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
#client ⇒ Object (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_root ⇒ Object
10 11 12 |
# File 'lib/cirro_io_v2/resources/base.rb', line 10 def resource_root self.class.name.demodulize.underscore.pluralize end |