Class: Fixably::ApplicationResource
- Inherits:
-
ActiveResource::Base
- Object
- ActiveResource::Base
- Fixably::ApplicationResource
- Extended by:
- Authorization
- Includes:
- Actions, Encoding, LoadFromResponse
- Defined in:
- lib/fixably/application_resource.rb
Direct Known Subclasses
Customer, Customer::BillingAddress, Customer::ShippingAddress, Device, Location, Order, Order::Contact, Order::Line, Order::Note, Order::Task, Queue, Status, Status::Custom, User
Instance Attribute Summary collapse
-
#parent_association ⇒ Object
Returns the value of attribute parent_association.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(attributes = {}, persisted = false) ⇒ ApplicationResource
constructor
rubocop:disable Style/OptionalBooleanParameter.
Methods included from Authorization
Methods included from LoadFromResponse
Methods included from Encoding
Methods included from Actions
#destroy, included, #save, #save!
Constructor Details
#initialize(attributes = {}, persisted = false) ⇒ ApplicationResource
rubocop:disable Style/OptionalBooleanParameter
43 44 45 46 47 |
# File 'lib/fixably/application_resource.rb', line 43 def initialize(attributes = {}, persisted = false) # rubocop:disable Style/OptionalBooleanParameter super(attributes, persisted) self.class.site end |
Instance Attribute Details
#parent_association ⇒ Object
Returns the value of attribute parent_association.
17 18 19 |
# File 'lib/fixably/application_resource.rb', line 17 def parent_association @parent_association end |
Class Method Details
.site ⇒ Object
20 21 22 23 |
# File 'lib/fixably/application_resource.rb', line 20 def site self.site = site_url unless _site_defined? super() end |