Class: Drip::Tag
Instance Attribute Summary
Attributes inherited from Resource
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(raw_data = {}) ⇒ Tag
constructor
A new instance of Tag.
Methods inherited from Resource
#method_missing, #respond_to?, #singular?
Constructor Details
#initialize(raw_data = {}) ⇒ Tag
Returns a new instance of Tag.
11 12 13 14 |
# File 'lib/drip/resources/tag.rb', line 11 def initialize(raw_data = {}) @raw_attributes = raw_data.dup.freeze @attributes = @raw_attributes end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Drip::Resource
Class Method Details
.resource_name ⇒ Object
7 8 9 |
# File 'lib/drip/resources/tag.rb', line 7 def self.resource_name "tag" end |