Class: ApiConsumer::Attributes::Base
- Inherits:
-
Object
- Object
- ApiConsumer::Attributes::Base
- Defined in:
- lib/api_consumer/attributes/base.rb
Constant Summary collapse
- STANDARDIZATIONS_KEY =
"meta"
Instance Attribute Summary collapse
-
#attributes ⇒ Object
Returns the value of attribute attributes.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ Base
constructor
A new instance of Base.
- #standardized? ⇒ Boolean
Constructor Details
#initialize(attributes) ⇒ Base
Returns a new instance of Base.
7 8 9 |
# File 'lib/api_consumer/attributes/base.rb', line 7 def initialize(attributes) self.attributes = attributes end |
Instance Attribute Details
#attributes ⇒ Object
Returns the value of attribute attributes.
5 6 7 |
# File 'lib/api_consumer/attributes/base.rb', line 5 def attributes @attributes end |
Instance Method Details
#standardized? ⇒ Boolean
11 12 13 |
# File 'lib/api_consumer/attributes/base.rb', line 11 def standardized? self.attributes.has_key? STANDARDIZATIONS_KEY end |