Module: MyVR::API::Fees

Included in:
Client
Defined in:
lib/myvr/api/fees.rb

Instance Method Summary collapse

Instance Method Details

#fee(id) ⇒ Object



15
16
17
18
# File 'lib/myvr/api/fees.rb', line 15

def fee(id)
  data = get_object("/v1/fees/#{ id }/")
  MyVR::Fee.new(data)
end

#feesObject



11
12
13
# File 'lib/myvr/api/fees.rb', line 11

def fees
  @fees ||= fees!
end

#fees!Object



4
5
6
7
8
9
# File 'lib/myvr/api/fees.rb', line 4

def fees!
  data = get_objects("/v1/fees/")
  data.map do |fee|
    MyVR::Fee.new(fee)
  end
end