Class: Mailbluster::Resource

Inherits:
Object
  • Object
show all
Defined in:
lib/mailbluster/resource.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_attributesObject (readonly)

Returns the value of attribute raw_attributes.



3
4
5
# File 'lib/mailbluster/resource.rb', line 3

def raw_attributes
  @raw_attributes
end