Class: Xendify::Base
- Inherits:
-
Object
- Object
- Xendify::Base
- Defined in:
- lib/xendify/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(client) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(client) ⇒ Base
Returns a new instance of Base.
25 26 27 |
# File 'lib/xendify/base.rb', line 25 def initialize(client) @client = client end |
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
3 4 5 |
# File 'lib/xendify/base.rb', line 3 def client @client end |
Class Method Details
.allowed_methods ⇒ Object
14 15 16 |
# File 'lib/xendify/base.rb', line 14 def allowed_methods @allowed_methods ||= [] end |
.model_class ⇒ Object
10 11 12 |
# File 'lib/xendify/base.rb', line 10 def model_class Object.const_get(model_name) end |
.model_name ⇒ Object
6 7 8 |
# File 'lib/xendify/base.rb', line 6 def model_name name.sub('Api', 'Model') end |