Class: Mailbluster::Resource
- Inherits:
-
Object
- Object
- Mailbluster::Resource
- Defined in:
- lib/mailbluster/resource.rb
Instance Attribute Summary collapse
-
#raw_attributes ⇒ Object
readonly
Returns the value of attribute raw_attributes.
Instance Method Summary collapse
-
#initialize(resource_type, attributes) ⇒ Resource
constructor
A new instance of Resource.
Constructor Details
#initialize(resource_type, attributes) ⇒ Resource
Returns a new instance of Resource.
5 6 7 8 9 |
# File 'lib/mailbluster/resource.rb', line 5 def initialize(resource_type, attributes) @resource_type = resource_type @raw_attributes = attributes map_attributes_to_methods end |
Instance Attribute Details
#raw_attributes ⇒ Object (readonly)
Returns the value of attribute raw_attributes.
3 4 5 |
# File 'lib/mailbluster/resource.rb', line 3 def raw_attributes @raw_attributes end |