Class: FsApi::Resource::Client

Inherits:
Object
  • Object
show all
Extended by:
ClassMethods
Includes:
FsApi::Resource
Defined in:
lib/fs_api/resource/client.rb

Instance Attribute Summary

Attributes included from ClassMethods

#attributes, #nillable_attributes

Attributes included from FsApi::Resource

#attributes, #errors

Instance Method Summary collapse

Methods included from ClassMethods

has_attributes, has_boolean_attributes, has_datetime_attributes, has_nillable_attributes

Methods included from FsApi::Resource

#from_api=, #initialize, #persisted?, #to_json, #updateable?

Instance Method Details

#pathObject



55
56
57
# File 'lib/fs_api/resource/client.rb', line 55

def path
  persisted? ? "/#{clientnr}" : ""
end