Class: ApiConsumer::Attributes::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/api_consumer/attributes/base.rb

Constant Summary collapse

STANDARDIZATIONS_KEY =
"meta"

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#attributesObject

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

Returns:

  • (Boolean)


11
12
13
# File 'lib/api_consumer/attributes/base.rb', line 11

def standardized?
  self.attributes.has_key? STANDARDIZATIONS_KEY
end