Class: CardmarketCLI::Entities::Changeable
- Defined in:
- lib/cardmarket_cli/entities/changeable.rb
Overview
Base for all entities with changeable attributes in the API
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Entity
Instance Method Summary collapse
- #changed? ⇒ Boolean
-
#initialize(id, account, params) ⇒ Changeable
constructor
A new instance of Changeable.
Constructor Details
#initialize(id, account, params) ⇒ Changeable
Returns a new instance of Changeable.
10 11 12 13 |
# File 'lib/cardmarket_cli/entities/changeable.rb', line 10 def initialize(id, account, params) super(id, account, params) @changed = false end |
Instance Method Details
#changed? ⇒ Boolean
15 16 17 |
# File 'lib/cardmarket_cli/entities/changeable.rb', line 15 def changed? @changed end |