Class: Drip::Tag

Inherits:
Resource show all
Defined in:
lib/drip/resources/tag.rb

Instance Attribute Summary

Attributes inherited from Resource

#attributes, #raw_attributes

Class Method Summary collapse

Instance Method Summary collapse

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_nameObject



7
8
9
# File 'lib/drip/resources/tag.rb', line 7

def self.resource_name
  "tag"
end