Class: FastBound::Client
- Includes:
- API
- Defined in:
- lib/fastbound-ruby/client.rb
Constant Summary
Constants included from API
API::FILE_UPLOAD_ATTRS, API::ROOT_URL, API::USER_AGENT
Instance Attribute Summary collapse
-
#account_email ⇒ Object
Returns the value of attribute account_email.
-
#account_number ⇒ Object
Returns the value of attribute account_number.
-
#api_key ⇒ Object
Returns the value of attribute api_key.
Instance Method Summary collapse
- #account ⇒ Object
- #acquisition ⇒ Object
- #attachment ⇒ Object
- #contact ⇒ Object
- #disposition ⇒ Object
-
#initialize(options = {}) ⇒ Client
constructor
A new instance of Client.
- #item ⇒ Object
- #smart_list ⇒ Object
- #webhook ⇒ Object
Methods included from API
#delete_request, #get_request, #post_file_request, #post_request, #put_request
Constructor Details
#initialize(options = {}) ⇒ Client
Returns a new instance of Client.
18 19 20 21 22 23 24 |
# File 'lib/fastbound-ruby/client.rb', line 18 def initialize( = {}) requires!(, :account_number, :api_key, :account_email) self.account_number = [:account_number] self.api_key = [:api_key] self.account_email = [:account_email] end |
Instance Attribute Details
#account_email ⇒ Object
Returns the value of attribute account_email.
16 17 18 |
# File 'lib/fastbound-ruby/client.rb', line 16 def account_email @account_email end |
#account_number ⇒ Object
Returns the value of attribute account_number.
16 17 18 |
# File 'lib/fastbound-ruby/client.rb', line 16 def account_number @account_number end |
#api_key ⇒ Object
Returns the value of attribute api_key.
16 17 18 |
# File 'lib/fastbound-ruby/client.rb', line 16 def api_key @api_key end |
Instance Method Details
#account ⇒ Object
26 27 28 |
# File 'lib/fastbound-ruby/client.rb', line 26 def account @account ||= FastBound::Account.new(self) end |
#acquisition ⇒ Object
30 31 32 |
# File 'lib/fastbound-ruby/client.rb', line 30 def acquisition @acquisition ||= FastBound::Acquisition.new(self) end |
#attachment ⇒ Object
34 35 36 |
# File 'lib/fastbound-ruby/client.rb', line 34 def @attachment ||= FastBound::Attachment.new(self) end |
#contact ⇒ Object
38 39 40 |
# File 'lib/fastbound-ruby/client.rb', line 38 def contact @contact ||= FastBound::Contact.new(self) end |
#disposition ⇒ Object
42 43 44 |
# File 'lib/fastbound-ruby/client.rb', line 42 def disposition @disposition ||= FastBound::Disposition.new(self) end |
#item ⇒ Object
46 47 48 |
# File 'lib/fastbound-ruby/client.rb', line 46 def item @item ||= FastBound::Item.new(self) end |