Class: Apruve::Merchant
- Inherits:
-
ApruveObject
- Object
- ApruveObject
- Apruve::Merchant
- Defined in:
- lib/apruve/resources/merchant.rb
Instance Attribute Summary collapse
-
#email ⇒ Object
Returns the value of attribute email.
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#phone ⇒ Object
Returns the value of attribute phone.
-
#web_url ⇒ Object
Returns the value of attribute web_url.
Class Method Summary collapse
Methods inherited from ApruveObject
#initialize, logger, #logger, #to_hash, #to_json, #validate
Constructor Details
This class inherits a constructor from Apruve::ApruveObject
Instance Attribute Details
#email ⇒ Object
Returns the value of attribute email.
3 4 5 |
# File 'lib/apruve/resources/merchant.rb', line 3 def email @email end |
#id ⇒ Object
Returns the value of attribute id.
3 4 5 |
# File 'lib/apruve/resources/merchant.rb', line 3 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/apruve/resources/merchant.rb', line 3 def name @name end |
#phone ⇒ Object
Returns the value of attribute phone.
3 4 5 |
# File 'lib/apruve/resources/merchant.rb', line 3 def phone @phone end |
#web_url ⇒ Object
Returns the value of attribute web_url.
3 4 5 |
# File 'lib/apruve/resources/merchant.rb', line 3 def web_url @web_url end |
Class Method Details
.find(id) ⇒ Object
5 6 7 8 9 |
# File 'lib/apruve/resources/merchant.rb', line 5 def self.find(id) response = Apruve.get("merchants/#{id}") logger.debug response.body Merchant.new(response.body) end |