Class: Recurly::Schema::PrimitiveAttribute

Inherits:
Attribute
  • Object
show all
Defined in:
lib/recurly/schema.rb

Constant Summary

Constants inherited from Attribute

Attribute::PRIMITIVE_TYPES

Instance Attribute Summary

Attributes inherited from Attribute

#type

Instance Method Summary collapse

Methods inherited from Attribute

build, #cast, #initialize, #recurly_class

Constructor Details

This class inherits a constructor from Recurly::Schema::Attribute

Instance Method Details

#is_valid?(value) ⇒ Boolean

Returns:

  • (Boolean)


100
101
102
# File 'lib/recurly/schema.rb', line 100

def is_valid?(value)
  value.is_a? self.type
end