Class: Billomat::Models::Tag

Inherits:
Base
  • Object
show all
Defined in:
lib/billomat/models/tag.rb

Overview

Representation of the tag resource.

Instance Attribute Summary

Attributes inherited from Base

#data

Class Method Summary collapse

Methods inherited from Base

#as_json, #create, #delete, find, #id, #initialize, #method_missing, #respond_to_missing?, #save, #update, where, #wrapped_data

Constructor Details

This class inherits a constructor from Billomat::Models::Base

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Billomat::Models::Base

Class Method Details

.base_pathString

Returns the resource’s base path.

Returns:

  • (String)

    the resource’s base path



8
9
10
# File 'lib/billomat/models/tag.rb', line 8

def self.base_path
  '/tags'
end

.resource_nameString

Returns the resource’s name.

Returns:

  • (String)

    the resource’s name



13
14
15
# File 'lib/billomat/models/tag.rb', line 13

def self.resource_name
  'tag'
end