Class: Lightspeed::Account

Inherits:
Resource show all
Defined in:
lib/lightspeed/account.rb

Instance Attribute Summary

Attributes inherited from Resource

#attributes, #client, #context, #id

Instance Method Summary collapse

Methods inherited from Resource

#as_json, #base_path, collection_name, #destroy, fields, #get_transformed_value, id_field, #id_params, #initialize, #inspect, #load, #read_attribute_for_serialization, relationships, #reload, #resource_name, resource_name, #singular_path_parent, #to_json, #update

Constructor Details

This class inherits a constructor from Lightspeed::Resource

Instance Method Details

#accountObject



37
38
39
# File 'lib/lightspeed/account.rb', line 37

def 
  self
end


41
42
43
44
45
46
47
# File 'lib/lightspeed/account.rb', line 41

def link
  if @link.is_a?(Hash)
    @link['@attributes']['href']
  else
    @link
  end
end