Class: CardmarketCLI::Entities::Changeable

Inherits:
Entity
  • Object
show all
Defined in:
lib/cardmarket_cli/entities/changeable.rb

Overview

Base for all entities with changeable attributes in the API

Direct Known Subclasses

Wantslist, WantslistItem

Instance Attribute Summary

Attributes inherited from Entity

#id

Instance Method Summary collapse

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, , params)
  super(id, , params)
  @changed = false
end

Instance Method Details

#changed?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/cardmarket_cli/entities/changeable.rb', line 15

def changed?
  @changed
end