Class: ShopifyOracle::Accessor::Customer
- Defined in:
- lib/shopify_oracle/accessor/customer.rb
Instance Attribute Summary collapse
-
#customer ⇒ Object
readonly
Returns the value of attribute customer.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(id:) ⇒ Customer
constructor
A new instance of Customer.
- #reload ⇒ Object
Methods inherited from Base
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
#customer ⇒ Object (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
#reload ⇒ Object
13 14 15 16 |
# File 'lib/shopify_oracle/accessor/customer.rb', line 13 def reload super @customer = @object end |