Class: ShopifyOracle::Accessor::Customer

Inherits:
Base
  • Object
show all
Defined in:
lib/shopify_oracle/accessor/customer.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#gid, #object

Instance Method Summary collapse

Methods inherited from Base

class_name, find, list

Constructor Details

#initialize(id:) ⇒ Customer

Returns a new instance of Customer.



8
9
10
11
# File 'lib/shopify_oracle/accessor/customer.rb', line 8

def initialize(id:)
  super
  @customer = @object
end

Instance Attribute Details

#customerObject (readonly)

Returns the value of attribute customer.



6
7
8
# File 'lib/shopify_oracle/accessor/customer.rb', line 6

def customer
  @customer
end

Instance Method Details

#reloadObject



13
14
15
16
# File 'lib/shopify_oracle/accessor/customer.rb', line 13

def reload
  super
  @customer = @object
end