Class: CorePro::Statement
- Inherits:
-
Models::ModelBase
- Object
- Models::JsonBase
- Models::ModelBase
- CorePro::Statement
- Defined in:
- lib/corepro/statement.rb
Instance Attribute Summary collapse
-
#customerId ⇒ Object
Returns the value of attribute customerId.
-
#month ⇒ Object
Returns the value of attribute month.
-
#statementId ⇒ Object
Returns the value of attribute statementId.
-
#type ⇒ Object
Returns the value of attribute type.
-
#year ⇒ Object
Returns the value of attribute year.
Attributes inherited from Models::ModelBase
Class Method Summary collapse
- .download(customerId, statementId, connection = nil, loggingObject = nil) ⇒ Object
- .get(customerId, statementId, connection = nil, loggingObject = nil) ⇒ Object
- .list(customerId, connection = nil, loggingObject = nil) ⇒ Object
Methods inherited from Models::ModelBase
Methods inherited from Models::JsonBase
#from_json!, #is_hash?, #to_hash, #to_json
Instance Attribute Details
#customerId ⇒ Object
Returns the value of attribute customerId.
8 9 10 |
# File 'lib/corepro/statement.rb', line 8 def customerId @customerId end |
#month ⇒ Object
Returns the value of attribute month.
10 11 12 |
# File 'lib/corepro/statement.rb', line 10 def month @month end |
#statementId ⇒ Object
Returns the value of attribute statementId.
7 8 9 |
# File 'lib/corepro/statement.rb', line 7 def statementId @statementId end |
#type ⇒ Object
Returns the value of attribute type.
9 10 11 |
# File 'lib/corepro/statement.rb', line 9 def type @type end |
#year ⇒ Object
Returns the value of attribute year.
11 12 13 |
# File 'lib/corepro/statement.rb', line 11 def year @year end |
Class Method Details
.download(customerId, statementId, connection = nil, loggingObject = nil) ⇒ Object
21 22 23 |
# File 'lib/corepro/statement.rb', line 21 def self.download(customerId, statementId, connection = nil, loggingObject = nil) CorePro::Utils::Requestor.get("/statement/download/#{customerId}/#{statementId}", CorePro::Models::FileContent, connection, loggingObject) end |
.get(customerId, statementId, connection = nil, loggingObject = nil) ⇒ Object
17 18 19 |
# File 'lib/corepro/statement.rb', line 17 def self.get(customerId, statementId, connection = nil, loggingObject = nil) CorePro::Utils::Requestor.get("/statement/get/#{customerId}/#{statementId}", Statement, connection, loggingObject) end |