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, Alert, App, Autoscaler, Collaborator, Container, Deployment, Domain, Notifier, Stat, Variable
Instance Attribute Summary
Attributes included from Base
Instance Method Summary collapse
-
#initialize(api, prefix, opts = {}, data = {}) ⇒ Resource
constructor
A new instance of Resource.
Methods included from Scalingo::Endpoint
Methods included from ClassMethods
Constructor Details
#initialize(api, prefix, opts = {}, data = {}) ⇒ Resource
Returns a new instance of Resource.
61 62 63 64 |
# File 'lib/scalingo/endpoint.rb', line 61 def initialize(api, prefix, opts = {}, data = {}) Base.instance_method(:initialize).bind(self).call(api, prefix, opts) OpenStruct.instance_method(:initialize).bind(self).call(data) end |