22 lines
383 B
Ruby
22 lines
383 B
Ruby
# frozen_string_literal: true
|
|
|
|
module StrikeMe
|
|
module API
|
|
class Account
|
|
class Profile < BaseModel
|
|
attribute :account
|
|
attribute :id
|
|
attribute :handle
|
|
attribute :canReceive
|
|
attribute :currencies
|
|
|
|
delegate :balances, to: :account
|
|
|
|
def can_receive?
|
|
canReceive.present?
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|