Class: GatherContent::Api::Account
- Defined in:
- lib/gather_content/api/account.rb
Instance Attribute Summary collapse
-
#account_id ⇒ Object
Returns the value of attribute account_id.
Instance Method Summary collapse
- #[](key) ⇒ Object
-
#initialize(account_id, data = nil) ⇒ Account
constructor
A new instance of Account.
Methods inherited from Base
#fetch, #get, #post, #post_json, #reset
Constructor Details
#initialize(account_id, data = nil) ⇒ Account
Returns a new instance of Account.
6 7 8 9 10 |
# File 'lib/gather_content/api/account.rb', line 6 def initialize(account_id, data = nil) raise ArgumentError, "account_id is required!" if account_id.nil? @account_id = account_id @data = data end |
Instance Attribute Details
#account_id ⇒ Object
Returns the value of attribute account_id.
4 5 6 |
# File 'lib/gather_content/api/account.rb', line 4 def account_id @account_id end |
Instance Method Details
#[](key) ⇒ Object
12 13 14 |
# File 'lib/gather_content/api/account.rb', line 12 def [](key) fetch[key] end |