Class: AllHours::Client
- Inherits:
-
Object
- Object
- AllHours::Client
- Defined in:
- lib/all_hours/client.rb
Instance Attribute Summary collapse
-
#account ⇒ Object
Returns the value of attribute account.
-
#businessDetails ⇒ Object
Returns the value of attribute businessDetails.
-
#createdAt ⇒ Object
Returns the value of attribute createdAt.
-
#enableResourcePlanner ⇒ Object
Returns the value of attribute enableResourcePlanner.
-
#excludedLabels ⇒ Object
Returns the value of attribute excludedLabels.
-
#externalId ⇒ Object
Returns the value of attribute externalId.
-
#favorite ⇒ Object
Returns the value of attribute favorite.
-
#id ⇒ Object
Returns the value of attribute id.
-
#invoicePublicNotes ⇒ Object
Returns the value of attribute invoicePublicNotes.
-
#lineItemMask ⇒ Object
Returns the value of attribute lineItemMask.
-
#name ⇒ Object
Returns the value of attribute name.
-
#paymentDueDays ⇒ Object
Returns the value of attribute paymentDueDays.
-
#project_ids ⇒ Object
Returns the value of attribute project_ids.
-
#status ⇒ Object
Returns the value of attribute status.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(data:, api:) ⇒ Client
constructor
A new instance of Client.
Constructor Details
#initialize(data:, api:) ⇒ Client
Returns a new instance of Client.
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/all_hours/client.rb', line 22 def initialize data:, api: @project_ids = data["project_ids"] @id = data["id"] @account = data["account"] @externalId = data["externalId"] @name = data["name"] @createdAt = Date.parse data["createdAt"] @lineItemMask = data["lineItemMask"] @paymentDueDays = data["paymentDueDays"] @businessDetails = data["businessDetails"] @invoicePublicNotes = data["invoicePublicNotes"] @excludedLabels = data["excludedLabels"] @status = data["status"] @enableResourcePlanner = data["enableResourcePlanner"] @favorite = data["favorite"] end |
Instance Attribute Details
#account ⇒ Object
Returns the value of attribute account.
7 8 9 |
# File 'lib/all_hours/client.rb', line 7 def account @account end |
#businessDetails ⇒ Object
Returns the value of attribute businessDetails.
7 8 9 |
# File 'lib/all_hours/client.rb', line 7 def businessDetails @businessDetails end |
#createdAt ⇒ Object
Returns the value of attribute createdAt.
7 8 9 |
# File 'lib/all_hours/client.rb', line 7 def createdAt @createdAt end |
#enableResourcePlanner ⇒ Object
Returns the value of attribute enableResourcePlanner.
7 8 9 |
# File 'lib/all_hours/client.rb', line 7 def enableResourcePlanner @enableResourcePlanner end |
#excludedLabels ⇒ Object
Returns the value of attribute excludedLabels.
7 8 9 |
# File 'lib/all_hours/client.rb', line 7 def excludedLabels @excludedLabels end |
#externalId ⇒ Object
Returns the value of attribute externalId.
7 8 9 |
# File 'lib/all_hours/client.rb', line 7 def externalId @externalId end |
#favorite ⇒ Object
Returns the value of attribute favorite.
7 8 9 |
# File 'lib/all_hours/client.rb', line 7 def favorite @favorite end |
#id ⇒ Object
Returns the value of attribute id.
7 8 9 |
# File 'lib/all_hours/client.rb', line 7 def id @id end |
#invoicePublicNotes ⇒ Object
Returns the value of attribute invoicePublicNotes.
7 8 9 |
# File 'lib/all_hours/client.rb', line 7 def invoicePublicNotes @invoicePublicNotes end |
#lineItemMask ⇒ Object
Returns the value of attribute lineItemMask.
7 8 9 |
# File 'lib/all_hours/client.rb', line 7 def lineItemMask @lineItemMask end |
#name ⇒ Object
Returns the value of attribute name.
7 8 9 |
# File 'lib/all_hours/client.rb', line 7 def name @name end |
#paymentDueDays ⇒ Object
Returns the value of attribute paymentDueDays.
7 8 9 |
# File 'lib/all_hours/client.rb', line 7 def paymentDueDays @paymentDueDays end |
#project_ids ⇒ Object
Returns the value of attribute project_ids.
7 8 9 |
# File 'lib/all_hours/client.rb', line 7 def project_ids @project_ids end |
#status ⇒ Object
Returns the value of attribute status.
7 8 9 |
# File 'lib/all_hours/client.rb', line 7 def status @status end |