Class: Kentaa::Api::Resources::RegistrationFee

Inherits:
Object
  • Object
show all
Defined in:
lib/kentaa/api/resources/registration_fee.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ RegistrationFee

Returns a new instance of RegistrationFee.



9
10
11
# File 'lib/kentaa/api/resources/registration_fee.rb', line 9

def initialize(data)
  @data = data
end

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



7
8
9
# File 'lib/kentaa/api/resources/registration_fee.rb', line 7

def data
  @data
end

Instance Method Details

#amountObject



13
14
15
# File 'lib/kentaa/api/resources/registration_fee.rb', line 13

def amount
  BigDecimal(data[:amount])
end

#titleObject



17
18
19
# File 'lib/kentaa/api/resources/registration_fee.rb', line 17

def title
  data[:title]
end