Class: Harvester::Client
- Inherits:
-
Object
- Object
- Harvester::Client
- Defined in:
- lib/harvester.rb
Instance Attribute Summary collapse
-
#email ⇒ Object
readonly
Returns the value of attribute email.
-
#password ⇒ Object
readonly
Returns the value of attribute password.
-
#rest_resource ⇒ Object
readonly
Returns the value of attribute rest_resource.
-
#subdomain ⇒ Object
readonly
Returns the value of attribute subdomain.
Instance Method Summary collapse
- #base_url ⇒ Object
-
#initialize(subdomain, email, password) ⇒ Client
constructor
A new instance of Client.
- #invoices ⇒ Object
Constructor Details
#initialize(subdomain, email, password) ⇒ Client
Returns a new instance of Client.
8 9 10 11 12 13 14 15 |
# File 'lib/harvester.rb', line 8 def initialize(subdomain, email, password) @subdomain = subdomain @email = email @password = password @rest_resource = RestClient::Resource.new(base_url, email, password) end |
Instance Attribute Details
#email ⇒ Object (readonly)
Returns the value of attribute email.
6 7 8 |
# File 'lib/harvester.rb', line 6 def email @email end |
#password ⇒ Object (readonly)
Returns the value of attribute password.
6 7 8 |
# File 'lib/harvester.rb', line 6 def password @password end |
#rest_resource ⇒ Object (readonly)
Returns the value of attribute rest_resource.
6 7 8 |
# File 'lib/harvester.rb', line 6 def rest_resource @rest_resource end |
#subdomain ⇒ Object (readonly)
Returns the value of attribute subdomain.
6 7 8 |
# File 'lib/harvester.rb', line 6 def subdomain @subdomain end |