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



43
44
45
# File 'lib/lightspeed/account.rb', line 43

def 
  self
end


47
48
49
50
51
52
53
# File 'lib/lightspeed/account.rb', line 47

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