class Starling::Resources::MerchantResource
A resource representing a Merchant returned from the Merchants API
Public Instance Methods
merchant_uid()
click to toggle source
@return [String] the Starling
internal ID of the merchant
# File lib/starling/resources/merchant_resource.rb, line 6 def merchant_uid parsed_data['merchantUid'] end
name()
click to toggle source
@return [String] the name of the merchant
# File lib/starling/resources/merchant_resource.rb, line 11 def name parsed_data['name'] end
phone_number()
click to toggle source
@return [String, nil] the phone number of the merchant, or nil if this is not
known
# File lib/starling/resources/merchant_resource.rb, line 23 def phone_number parsed_data['phoneNumber'] end
twitter_username()
click to toggle source
@return [String, nil] the Twitter username of the merchant, prefixed with “@”, or
nil if this is not known
# File lib/starling/resources/merchant_resource.rb, line 29 def twitter_username parsed_data['twitterUsername'] end
website()
click to toggle source
@return [String, nil] the website address of the merchant, or nil if this is not
known
# File lib/starling/resources/merchant_resource.rb, line 17 def website parsed_data['website'] end