Class: Scalingo::Endpoint::Resource
- Inherits:
-
OpenStruct
- Object
- OpenStruct
- Scalingo::Endpoint::Resource
- Includes:
- Scalingo::Endpoint, Base
- Defined in:
- lib/scalingo/endpoint.rb
Direct Known Subclasses
AccountKey, Addon, App, Collaborator, Container, Deployment, Domain, Stat, Variable
Instance Attribute Summary
Attributes included from Base
Instance Method Summary collapse
-
#initialize(api, prefix, data = {}) ⇒ Resource
constructor
A new instance of Resource.
Methods included from Scalingo::Endpoint
Methods included from ClassMethods
Constructor Details
#initialize(api, prefix, data = {}) ⇒ Resource
Returns a new instance of Resource.
50 51 52 53 |
# File 'lib/scalingo/endpoint.rb', line 50 def initialize(api, prefix, data = {}) Base.instance_method(:initialize).bind(self).call(api, prefix) OpenStruct.instance_method(:initialize).bind(self).call(data) end |