class Freee::Response::Base

Attributes

val[R]

Public Class Methods

new(val) click to toggle source
# File lib/freee/obj/response.rb, line 7
def initialize(val)
  @val = Hash.try_convert(val)
end

Public Instance Methods

[](name) click to toggle source
# File lib/freee/obj/response.rb, line 15
def [](name)
  @val[name.to_s]
end
has_key?(name) click to toggle source
# File lib/freee/obj/response.rb, line 19
def has_key?(name)
  if @val[name.to_s]
    return true
  else
    return false
  end
end
Also aliased as: key, include?, member?
include?(name)
Alias for: has_key?
key(name)
Alias for: has_key?
member?(name)
Alias for: has_key?
method_missing(name, *args) click to toggle source
# File lib/freee/obj/response.rb, line 11
def method_missing(name, *args)
  @val[name.to_s]
end