Class: Square::Connect::Merchant
- Includes:
- Connections::BankAccounts, Connections::Payments, Connections::Refunds, Connections::Settlements
- Defined in:
- lib/square/connect/merchant.rb
Instance Attribute Summary collapse
-
#country_code ⇒ Object
Returns the value of attribute country_code.
-
#email ⇒ Object
Returns the value of attribute email.
-
#language_code ⇒ Object
Returns the value of attribute language_code.
-
#name ⇒ Object
Returns the value of attribute name.
Attributes inherited from Node
#access_token, #endpoint, #identifier
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(*args) ⇒ Merchant
constructor
A new instance of Merchant.
Methods included from Connections::BankAccounts
Methods included from Connections::Settlements
Methods included from Connections::Refunds
Methods included from Connections::Payments
Methods inherited from Node
Constructor Details
#initialize(*args) ⇒ Merchant
Returns a new instance of Merchant.
11 12 13 14 15 16 17 18 |
# File 'lib/square/connect/merchant.rb', line 11 def initialize(*args) super do |attributes| self.name = attributes[:name] self.email = attributes[:email] self.country_code = attributes[:country_code] self.language_code = attributes[:language_code] end end |
Instance Attribute Details
#country_code ⇒ Object
Returns the value of attribute country_code.
9 10 11 |
# File 'lib/square/connect/merchant.rb', line 9 def country_code @country_code end |
#email ⇒ Object
Returns the value of attribute email.
9 10 11 |
# File 'lib/square/connect/merchant.rb', line 9 def email @email end |
#language_code ⇒ Object
Returns the value of attribute language_code.
9 10 11 |
# File 'lib/square/connect/merchant.rb', line 9 def language_code @language_code end |
#name ⇒ Object
Returns the value of attribute name.
9 10 11 |
# File 'lib/square/connect/merchant.rb', line 9 def name @name end |
Class Method Details
.me(access_token) ⇒ Object
21 22 23 |
# File 'lib/square/connect/merchant.rb', line 21 def me(access_token) new :me, access_token end |